import request from '@/utils/request'

export function bannerList(data) {
  return request({
    url: '/banner',
    method: 'get',
    data
  })
}

export function bannerPost(data) {
  return request({
    url: '/banner',
    method: 'post',
    data
  })
}

export function bannerPatch(data) {
  return request({
    url: `/banner/${data.id}`,
    method: 'patch',
    data
  })
}
